<?php
	header("content-type:text/html;charset=UTF-8");
	if(isset($_GET['ip'])){ $ip=$_GET['ip'];}
	else{$ip=$_SERVER['REMOTE_ADDR'];}
	include('include/misc.func.php');
	echo "the ip info is:<br>";
	$ip = "58.46.45.22";
	echo ip2location($ip);

?>